package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("cgnci_message")
@ApiModel(value = "CgnciMessageDO对象", description = "消息主表")
public class CgnciMessageDO {

    @ApiModelProperty("消息ID")
    @TableId(value = "message_id", type = IdType.AUTO)
    private Long messageId;

    @ApiModelProperty("消息标题")
    private String title;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型(NOTICE-通知消息 TASK-任务消息)")
    private String messageType;

    @ApiModelProperty("业务类型")
    private String businessType;

    @ApiModelProperty("业务ID")
    private String businessId;

    @ApiModelProperty("业务编号")
    private String businessNo;

    @ApiModelProperty("发送人")
    private String sender;

    @ApiModelProperty("发送时间")
    private Date sendTime;

    @ApiModelProperty("过期时间")
    private Date expireTime;

    @ApiModelProperty("是否删除(Y/N)")
    private String isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;
} 